﻿using JNPF.Basics.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    /// <summary>
    /// 销售订单
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-07-11 
    /// </summary>
    internal interface SalesOrderIService
    {
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="id">主键值</param>
        /// <returns></returns>
        Task<List<SalesOrderEntryEntity>> GetSalesEntryList(string id);
        /// <summary>
        /// 信息
        /// </summary>
        /// <param name="id">主键值</param>
        /// <returns></returns>
        Task<SalesOrderEntity> GetInfo(string id);
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <param name="salesOrderEntryEntityList">子表</param>
        Task Create(SalesOrderEntity entity, List<SalesOrderEntryEntity> salesOrderEntryEntityList);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <param name="salesOrderEntryEntityList">子表</param>
        Task Update(SalesOrderEntity entity, List<SalesOrderEntryEntity> salesOrderEntryEntityList);
    }
}
